package interface_01;

public class Turtle extends Pet implements Animal {
    public Turtle(String name,int age){
        super(name,age,"乌龟");
    }

    @Override
    public void eat() {
        System.out.println(this.getName()+"正在吃芝士火腿披萨。");
    }

    @Override
    public void travel() {
        System.out.println(this.getName()+"正在踩着喷气式滑板飞驰。");
    }
}
